/*
 * 创建人： Created by  on 2020/12/3.
 * 创建时间：Created by  on 2020/12/3.
 * 页面说明：
 * 可关注公众号：我的大前端生涯   获取最新技术分享
 * 可关注网易云课堂：https://study.163.com/instructor/1021406098.htm
 * 可关注博客：https://blog.csdn.net/zl18603543572
 */

class OrderBean {
  int id;
  String goodsName;
  num unitNumber;
  num orderPrice;
  String orderSn;
  String goodsContent;
  String goodsImage;
  int orderStatues;

  String userName;
  String userPhone;

  String createTimeStr;
  String formatCode;

  String confirmTime;
  String createTime;

  ///常用用于解析JSON数据
  OrderBean.fromMap(Map<String, dynamic> map) {
    if (map != null) {
      this.formatCode = map["formatCode"] ?? "--";
      this.userName = map["userName"] ?? "--";
      this.userPhone = map["userPhone"] ?? "--";

      this.confirmTime = map["confirmTime"] ?? "--";
      this.createTime = map["createTime"] ?? "--";
      this.goodsName = map["goodsName"] ?? "--";
      this.orderSn = map["orderSn"] ?? "--";
      this.createTimeStr = map["createTimeStr"] ?? "--";

      this.orderPrice = map["orderPrice"] ?? 0;
      this.goodsContent = map["goodsContent"] ?? "";
      this.goodsImage = map["goodsImage"] ?? "";
      this.unitNumber = map["unitNumber"] ?? 0;
      this.orderStatues = map["orderStatues"] ?? 0;
      this.id = map["id"] ?? 0;
    }
  }
}
